import { $get, $post } from "@/http";


/**
 * @dir 获取公司信息
 */
async function getEnterpriseInfo() {
  return await $post("/enterprise/detailSelf");
}

/**
 * @dir 获取城市
 */
async function getCity() {
  return await $post("/area/getAreaInfo");
}

/**
 * @dir 获取行业类型
 */
async function getIndustryTree() {
  return await $post("/industry/getIndustryTree");
}

/**
 * @dir 获取行业类型
 */
async function updateEnterprise(data) {
  return await $post("/enterprise/update", data);
}

export {
    getEnterpriseInfo,
    getCity,
    getIndustryTree,
    updateEnterprise
};
